package org.mespilus.mespilusweb.ui.usermanagement.client.events;

import org.mespilus.mespilusweb.ui.usermanagement.client.model.FullMember;

import com.google.gwt.event.shared.GwtEvent;

public class MemberFoundEvent extends GwtEvent<MemberFoundHandler>{
	protected static final GwtEvent.Type<MemberFoundHandler> TYPE = new Type<MemberFoundHandler>();
	protected FullMember fullMember;
	
	public FullMember getFullMember() {
		return fullMember;
	}

	public void setFullMember(FullMember fullMember) {
		this.fullMember = fullMember;
	}

	public static GwtEvent.Type<MemberFoundHandler> getTYPE() {
		return TYPE;
	}

	@Override
	protected void dispatch(MemberFoundHandler handler) {
		handler.processMemberFound(this);
	}

	@Override
	public Type<MemberFoundHandler> getAssociatedType() {
		return TYPE;
	}
}
